package extend;

/**
 * @program: baseModule
 * @description:
 * @author: zhanghz001
 * @create: 2020-10-22 15:05
 **/
public interface Inter {
    int num = 10;

    void method();

    //jdk8添加,
    default void test() {
        System.out.println("这是一个寂寞的天");
    }

    //static方法,jdk8添加
    static void sta() {
        System.out.println("这是接口静态方法");
    }

    //jdk9产生
    // private void test2() {
    //     System.out.println("dfldslflsd");
    // }

}
